package eoeProject.edenOfEast.bean;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import eoeProject.edenOfEast.dataBase.DB_EOE_ANALYSES;

public class EOEAnalysesBean implements DBBean {

	private Integer analyses_id;
	private Integer create_user_id;
	private String create_user_name;
	private Integer category_id;
	private String title;
	private Integer status;
	private String about;
	private String tag1 = "";
	private String tag2 = "";
	private String tag3 = "";
	private Integer total_res = 0;
	private Date create_date;
	private Date update_date;

	private String category_name;

	private List<String> columnList = new ArrayList<String>();
	private List<String> valueList = new ArrayList<String>();

	public EOEAnalysesBean() {
		columnList.add(DB_EOE_ANALYSES.ANALYSES_ID);
		columnList.add(DB_EOE_ANALYSES.CREATE_USER_ID);
		columnList.add(DB_EOE_ANALYSES.CREATE_USER_NAME);
		columnList.add(DB_EOE_ANALYSES.CATEGORY_ID);
		columnList.add(DB_EOE_ANALYSES.TITLE);
		columnList.add(DB_EOE_ANALYSES.STATUS);
		columnList.add(DB_EOE_ANALYSES.ABOUT);
		columnList.add(DB_EOE_ANALYSES.TAG1);
		columnList.add(DB_EOE_ANALYSES.TAG2);
		columnList.add(DB_EOE_ANALYSES.TAG3);
		columnList.add(DB_EOE_ANALYSES.TOTAL_RES);
		columnList.add(DB_EOE_ANALYSES.CREATE_DATE);
		columnList.add(DB_EOE_ANALYSES.UPDATE_DATE);
	}

	public List<String> getColumnList() {
		return columnList;
	}

	public void setValueList() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		valueList.add(analyses_id.toString());
		valueList.add(create_user_id.toString());
		valueList.add(create_user_name);
		valueList.add(category_id.toString());
		valueList.add(title);
		valueList.add(status.toString());
		valueList.add(about);
		valueList.add(tag1);
		valueList.add(tag2);
		valueList.add(tag3);
		valueList.add(total_res.toString());
		valueList.add(sdf.format(create_date));
		valueList.add(sdf.format(update_date));
	}

	public List<String> getValueList() {
		return valueList;
	}

	public Integer getAnalysesId() {
		return analyses_id;
	}

	public void setAnalysesId(Integer analyses_id) {
		this.analyses_id = analyses_id;
	}

	public Integer getCreateUserId() {
		return create_user_id;
	}

	public void setCreateUserId(Integer create_user_id) {
		this.create_user_id = create_user_id;
	}

	public String getCreateUserName() {
		return create_user_name;
	}

	public void setCreateUserName(String create_user_name) {
		this.create_user_name = create_user_name;
	}

	public Integer getCategoryId() {
		return category_id;
	}

	public void setCategoryId(Integer category_id) {
		this.category_id = category_id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getAbout() {
		return about;
	}

	public void setAbout(String about) {
		this.about = about;
	}

	public Date getCreateDate() {
		return create_date;
	}

	public void setCreateDate(Date create_date) {
		this.create_date = create_date;
	}

	public Date getUpdateDate() {
		return update_date;
	}

	public void setUpdateDate(Date update_date) {
		this.update_date = update_date;
	}

	public String getCategoryName() {
		return category_name;
	}

	public void setCategoryName(String category_name) {
		this.category_name = category_name;
	}

	public String getTag1() {
		return tag1;
	}

	public void setTag1(String tag1) {
		this.tag1 = tag1;
	}

	public String getTag2() {
		return tag2;
	}

	public void setTag2(String tag2) {
		this.tag2 = tag2;
	}

	public String getTag3() {
		return tag3;
	}

	public void setTag3(String tag3) {
		this.tag3 = tag3;
	}

	public Integer getTotalRes() {
		return total_res;
	}

	public void setTotalRes(Integer total_res) {
		this.total_res = total_res;
	}

}
